<style>
	table tr td {
		text-align:center;
	}
</style>
<form class="form-search" action="" method="post" onsubmit="reload();return false;">
		<div class="input-prepend"><span class="add-on">账号名称</span><input type="text" class="input-medium" name="account"></div>
		<button type="submit" class="btn btn-primary" onclick="">搜&nbsp&nbsp&nbsp索</button>
    </form>
<table class="table table-bordered table-striped table-hover">
	<thead><tr><td><input type="checkbox"/></td><td>账户名称</td><td>企业名称</td><td>联系人</td><td>手机</td><td>账户余额</td><td>更新时间</td><td>扣量</td><td width=120>操作</td></tr></thead>
	<tbody>
		<volist name="list" id="vo">

			<tr><td><input type="checkbox"/></td><td>{$vo.account}</td><td>{$vo.company_name}</td><td>{$vo.company_contacter}</td><td>{$vo.contact_mobilephone}</td><td>{$vo.assets}</td><td>{$vo.update_time}</td><td>0</td><td><span class="label label-important" style="cursor:pointer"  onclick="accountInfo({$vo.uid})">查看</span>
		               <span class="label label-important" style="cursor:pointer" onclick="charge({$vo.uid})">充值</span></tr>
		</volist>
	</tbody>
</table>

<div class="pagination" style="float:right">
	<select name="pageNum" style="margin-top:-20px;width:60px">
		<option>10</option>
		<option>20</option>
		<option>30</option>
	</select>
	{$page}
</div>
<script>
    //日期选择框
	datepickerRange('start','end');
	//搜索
	function loginLogSearch(url){
//		alert(getInputValueByName('startdate')+"-"+getInputValueByName('enddate')+"-"+getInputValueByName('company_name'));
	//	$.getJSON(url,{startdate:getInputValueByName('startdate'),enddate:getInputValueByName('enddate'),company_name:getInputValueByName('company_name')},function(json){
			$("#maincontent").load('__APP__/Account/accountManage',{startdate:getInputValueByName('startdate'),enddate:getInputValueByName('enddate'),account:getInputValueByName('account')});
		//	if(json.status == 1){
		//		$.remind('提示',json.info);
		//	}else{
		//		$.warn("错误提示",json.info);
		//	}
	//	});
	}
	function reload(){
		$("#maincontent").load('__APP__/Account/accountManage',{startdate:getInputValueByName('startdate'),enddate:getInputValueByName('enddate'),account:getInputValueByName('account')});
	}
	function charge(uid){
		
		$.dialog("账号充值","__APP__/Account/charge/uid/"+uid);
	}
	function accountInfo(uid){
		$.dialog("账号详情","__APP__/Account/accountInfo/uid/"+uid);
	}
</script>